import config from '@/config/config.js'

export const getWxLoginCode = () => {
	const appId = config.appid
	const redirectUri = `${config.baseUrl}/pages/index/wxLogin`
	const state = config.state
	window.open(`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appId}&redirect_uri=${redirectUri}&response_type=code&scope=snsapi_userinfo&state=${state}#wechat_redirect`)
}